* {
    margin: 0;
    padding: 0;
}

body {
    font-size: 14px;
    background-color: #000;
}

a {
    text-decoration: none;
    font-size: 14px;
    color: #fff;
}

ul li, ol {
    list-style-type: none;
}

/*容器，预定1300px，用来装八大行星和太阳的盒子*/
.container {
    width: 1300px;
    height: 1300px;
    border: 2px solid #fff;
    margin: 15px;
    border-radius: 15px;
    position: relative;
}

/*给每个行星的轨道添加样式*/
.track {
    border: 1px solid #ccc;
    border-radius: 50%;
}

/*太阳 2r=100px,R=0,t=0,*/
.taiyang {
    width: 100px;
    height: 100px;
    background: url("http://demo.zhangbin.xin/2d_tyx/image/1.png") center center no-repeat;
    position: absolute;
    left: 600px; /*(1300/2-(100/2))*/
    top: 600px;
}

/*水星 2r=50px,R=150px,t=2.5s */
.shuixing {
    width: 150px;
    height: 150px;
    position: absolute;
    left: 575px;
    top: 575px;
    animation: rotate_ linear 2.50s infinite;
}

#shuixing {
    width: 50px;
    height: 50px;
    background: url("http://demo.zhangbin.xin/2d_tyx/image/2.png") left top no-repeat;
}

/*金星 2r=60px,R=260px,t=6.4s */
.jinxing {
    width: 260px;
    height: 260px;
    position: absolute;
    left: 520px;
    top: 520px;
    animation: rotate_ linear 6.40s infinite;
}

#jinxing {
    width: 60px;
    height: 60px;
    background: url("http://demo.zhangbin.xin/2d_tyx/image/3.png") left top no-repeat;
    position: relative;
    left: -5px;
    top: 22px;
}

/*地球 2r=60px,R=370px,t=10.40s*/
.diqiu {
    width: 370px;
    height: 370px;
    position: absolute;
    left: 465px;
    top: 465px;
    animation: rotate_ linear 10.40s infinite;
}

#diqiu {
    width: 60px;
    height: 60px;
    background: url("http://demo.zhangbin.xin/2d_tyx/image/4.png") left top no-repeat;
    position: relative;
    top: 43px;
    left: 8px;
}

/*火星 2r=50px,R=480px,t=19.58s*/
.huoxing {
    width: 480px;
    height: 480px;
    position: absolute;
    left: 410px;
    top: 410px;
    animation: rotate_ linear 19.58s infinite;
}

#huoxing {
    width: 60px;
    height: 60px;
    background: url("http://demo.zhangbin.xin/2d_tyx/image/5.png") left top no-repeat;
    position: relative;
    top: 71px;
    left: 20px;
}

/*木星 2r=50px,R=620px,t=122.78s*/
.muxing {
    width: 620px;
    height: 620px;
    position: absolute;
    left: 340px;
    top: 340px;
    animation: rotate_ linear 122.78s infinite;
}

#muxing {
    width: 80px;
    height: 80px;
    background: url("http://demo.zhangbin.xin/2d_tyx/image/6.png") left top no-repeat;
    position: relative;
    top: 83px;
    left: 20px;
}

/*土星 2r1=120px 2r2=80px,R=820px,t=306.95s*/
.tuxing {
    width: 820px;
    height: 820px;
    position: absolute;
    left: 240px;
    top: 240px;
    animation: rotate_ linear 306.95s infinite;
}

#tuxing {
    width: 120px;
    height: 80px;
    background: url("http://demo.zhangbin.xin/2d_tyx/image/7.png") left top no-repeat;
    position: relative;
    top: 124px;
    left: 13px;
}

/*天王星 2r=80px,R=1020px,t=874.00s*/
.tianwangxing {
    width: 1020px;
    height: 1020px;
    position: absolute;
    left: 140px;
    top: 140px;
    animation: rotate_ linear 874.00s infinite;
}

#tianwangxing {
    width: 80px;
    height: 80px;
    background: url("http://demo.zhangbin.xin/2d_tyx/image/8.png") left top no-repeat;
    position: relative;
    top: 160px;
    left: 63px;
}

/*海王星 2r=70px,R=1190px,t=1714.72s*/
.haiwangxing {
    width: 1190px;
    height: 1190px;
    position: absolute;
    left: 55px;
    top: 55px;
    animation: rotate_ linear 1714.72s infinite;
}

#haiwangxing {
    width: 70px;
    height: 70px;
    background: url("http://demo.zhangbin.xin/2d_tyx/image/9.png") left top no-repeat;
    position: relative;
    top: 184px;
    left: 91px;
}

/*旋转关键帧 每个轨道都调用该函数*/
@keyframes rotate_ {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

